/* General Styles */
.parsedown-content {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Headers */
.parsedown-content h1,
.parsedown-content h2,
.parsedown-content h3,
.parsedown-content h4,
.parsedown-content h5,
.parsedown-content h6 {
    font-family: 'Georgia', serif;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
}

.parsedown-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.parsedown-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.parsedown-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.parsedown-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.parsedown-content h5 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.parsedown-content h6 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #777;
}

/* Paragraphs */
.parsedown-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

/* Blockquotes */
.parsedown-content blockquote {
    font-style: italic;
    background-color: #f9f9f9;
    border-left: 5px solid #ccc;
    margin: 15px 0;
    padding: 10px 20px;
    color: #555;
}

/* Links */
.parsedown-content a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.parsedown-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Images */
.parsedown-content img {
    display: block;
    margin: 20px auto; /* Center the image */
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Lists */
.parsedown-content ul,
.parsedown-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.parsedown-content ul {
    list-style-type: disc;
}

.parsedown-content ol {
    list-style-type: decimal;
}

.parsedown-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Code */
.parsedown-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    overflow-x: auto;
}

.parsedown-content code {
    background-color: #f1f1f1;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

/* Tables */
.parsedown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.parsedown-content th,
.parsedown-content td {
    padding: 12px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.parsedown-content th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Horizontal Rules */
.parsedown-content hr {
    border: none;
    height: 1px;
    background-color: #e9ecef;
    margin: 30px 0;
}

/* Inline Styles for Bold and Italic */
.parsedown-content strong {
    font-weight: bold;
    color: #333;
}

.parsedown-content em {
    font-style: italic;
    color: #666;
}

/* Custom Class for Alert Boxes */
.parsedown-content .alert {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 20px;
}

.parsedown-content .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.parsedown-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.parsedown-content .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.parsedown-content .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
